package com.itheima.reggin.entity;
/*
员工实体
*/

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Employee {
    private Long id;
    private String username;
    private String name;
    private String password;
    private String phone;
    private String sex;
    private String idNumber;
    private Integer status;

    @TableField(fill=FieldFill.INSERT)
    private LocalDateTime createTime;//创建时间
    @TableField(fill=FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;//修改时间
    @TableField(fill= FieldFill.INSERT)
    private Long createUser;//创建用户名

    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Long updateUser;//修改用户名
}
